﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace RBAC.Domain
{
    [Table("UserInfo")]
    public class UserInfo
    {
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 部门id
        /// </summary>
        public int SectorId {  get; set; }

        public string? Name { get; set; }   

        public string? Pwd {  get; set; }

        public bool Sex { get; set; }

        public int Province {  get; set; }

        public int City { get; set; }

        public int District { get; set; }

        public string? AddressDetail { get; set; }

        public bool IsDel {  get; set; }

        public string? CreatePeople {  get; set; }

        public DateTime CreateTime { get; set; }

        public string? UpdPeople {  get; set; }

        public DateTime? UpdTime { get; set; }
    }

    /// <summary>
    /// 省份表
    /// </summary>
    [Table("ProVicnce")]
    public class ProVicnce
    {
        [Key]
        public int Id { get; set; }

        public string? Name { get; set; }
    }

    /// <summary>
    /// 市表
    /// </summary>
    [Table("City")]
    public class Citys
    {
        [Key]
        public int Id { get; set; }

        public string? Name { get; set; }

        /// <summary>
        /// 省份编号
        /// </summary>
        public int Pid { get; set; }
    }

    /// <summary>
    /// 区表
    /// </summary>
    [Table("District")]
    public class District
    {
        [Key]
        public int Id { get; set; }

        public string? Name { get; set; }

        public int Cid { get; set; }
    }
}
